home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / metamail / contrib / ServiceMail / src / mesh / tcl / Makefile < prev    next >
Encoding:
Makefile  |  1993-03-18  |  1.8 KB  |  62 lines

  1. #
  2. # This Makefile is for use when distributing Tcl to the outside world.
  3. # It is normally set up by running the "config" script.  Before modifying
  4. # this file by hand, you should read through the "config" script to see
  5. # what it does.
  6. #
  7. # Some changes you may wish to make here:
  8. #
  9. # 1. To compile for non-UNIX systems (so that only the non-UNIX-specific
  10. # commands are available), change the OBJS line below so it doesn't
  11. # include ${UNIX_OBJS}.  Also, add the switch "-DTCL_GENERIC_ONLY" to
  12. # CFLAGS.  Lastly, you'll have to provide your own replacement for the
  13. # "panic" procedure (see panic.c for what the current one does).
  14. #
  15. # 2. ANSI-C procedure prototypes are turned on by default if supported
  16. # by the compiler.  To turn them off, add "-DNO_PROTOTYPE" to CFLAGS
  17. # below.
  18. #
  19. # 3. If you've put the Tcl script library in a non-standard place, change
  20. # the definition of TCL_LIBRARY to correspond to its location on your
  21. # system.
  22. #
  23.  
  24. #TCL_LIBRARY =    /usr/local/lib/tcl
  25. TCL_LIBRARY = $(SRCDIR)/mesh/tcl/library
  26.  
  27. CC =        cc
  28. CFLAGS =    -g -I. -DTCL_LIBRARY=\"${TCL_LIBRARY}\"
  29.  
  30. GENERIC_OBJS =    regexp.o tclAssem.o tclBasic.o tclCkalloc.o \
  31.     tclCmdAH.o tclCmdIL.o tclCmdMZ.o tclExpr.o tclGet.o \
  32.     tclHash.o tclHistory.o tclParse.o tclProc.o tclUtil.o \
  33.     tclVar.o
  34.  
  35. UNIX_OBJS = panic.o tclEnv.o tclGlob.o tclUnixAZ.o tclUnixStr.o \
  36.     tclUnixUtil.o 
  37.  
  38. COMPAT_OBJS = strerror.o strtoul.o
  39.  
  40. OBJS = ${GENERIC_OBJS} ${UNIX_OBJS} ${COMPAT_OBJS}
  41.  
  42. libtcl.a: ${OBJS}
  43.     rm -f libtcl.a
  44.     ar cr libtcl.a ${OBJS}
  45.     ranlib libtcl.a
  46.  
  47. tclTest: tclTest.o libtcl.a
  48.     ${CC} ${CFLAGS} tclTest.o libtcl.a -o tclTest
  49.  
  50. clean:
  51.     rm -f ${OBJS} libtcl.a tclTest.o tclTest
  52.  
  53. # The following target is used during configuration to compile
  54. # a test program to see if certain facilities are available on
  55. # the system.
  56.  
  57. test:
  58.     ${CC} ${CFLAGS} test.c
  59.  
  60. ${OBJS}: tcl.h tclHash.h tclInt.h
  61. ${UNIX_OBJS}: tclUnix.h
  62.